package com.init.linoj.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.init.linoj.model.dto.questionsubmit.QuestionSubmitAddRequest;
import com.init.linoj.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import com.init.linoj.model.entity.QuestionSubmit;
import com.init.linoj.model.entity.User;
import com.init.linoj.model.vo.QuestionSubmitVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author Mi
* @description 针对表【question_submit】的数据库操作Service
* @createDate 2023-08-29 17:14:20
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

    QuestionSubmitVO getQuestionSubmitVO(QuestionSubmit questionSubmit,User loginUser);

    Page<QuestionSubmitVO> getQuestionSubmitVOPage(Page<QuestionSubmit> questionSubmitPage, User loginUser);
}
